package com.ruoyi.stock2.service.impl;

import java.util.List;
import java.util.Map;

import com.ruoyi.stock2.domain.TRADEDATA;
import com.ruoyi.stock2.domain.TradeDataAndForetell;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.stock2.mapper.TRADEDATA200Mapper;
import com.ruoyi.stock2.domain.TRADEDATA200;
import com.ruoyi.stock2.service.ITRADEDATA200Service;
import com.ruoyi.common.core.text.Convert;

/**
 * 交易数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2019-12-12
 */
@Service
public class TRADEDATA200ServiceImpl implements ITRADEDATA200Service 
{
    @Autowired(required = false)
    private TRADEDATA200Mapper tRADEDATA200Mapper;

    /**
     * 查询交易数据
     * 
     * @param id 交易数据ID
     * @return 交易数据
     */
    @Override
    public TRADEDATA200 selectTRADEDATA200ById(Long id)
    {
        return tRADEDATA200Mapper.selectTRADEDATA200ById(id);
    }

    /**
     * 查询交易数据列表
     * 
     * @param tRADEDATA200 交易数据
     * @return 交易数据
     */
    @Override
    public List<TRADEDATA200> selectTRADEDATA200List(TRADEDATA200 tRADEDATA200)
    {
        return tRADEDATA200Mapper.selectTRADEDATA200List(tRADEDATA200);
    }

    /**
     * 新增交易数据
     * 
     * @param tRADEDATA200 交易数据
     * @return 结果
     */
    @Override
    public int insertTRADEDATA200(TRADEDATA200 tRADEDATA200)
    {
        return tRADEDATA200Mapper.insertTRADEDATA200(tRADEDATA200);
    }

    /**
     * 修改交易数据
     * 
     * @param tRADEDATA200 交易数据
     * @return 结果
     */
    @Override
    public int updateTRADEDATA200(TRADEDATA200 tRADEDATA200)
    {
        return tRADEDATA200Mapper.updateTRADEDATA200(tRADEDATA200);
    }

    /**
     * 删除交易数据对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteTRADEDATA200ByIds(String ids)
    {
        return tRADEDATA200Mapper.deleteTRADEDATA200ByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除交易数据信息
     * 
     * @param id 交易数据ID
     * @return 结果
     */
    @Override
    public int deleteTRADEDATA200ById(Long id)
    {
        return tRADEDATA200Mapper.deleteTRADEDATA200ById(id);
    }

    @Override
    public int insertTRADEDATA200b(List<TRADEDATA200> emps) {
        return tRADEDATA200Mapper.insertTRADEDATA200b(emps);
    }

    @Override
    public List<TRADEDATA200> get200ByKeyDateTimeDesc(TRADEDATA200 tRADEDATA200) {
        return tRADEDATA200Mapper.get200ByKeyDateTimeDesc(tRADEDATA200);
    }

    @Override
    public List<TRADEDATA200> get40ByKeyDateTimeDesc(TRADEDATA200 tRADEDATA200) {
        return tRADEDATA200Mapper.get40ByKeyDateTimeDesc(tRADEDATA200);
    }

    @Override
    public List<TradeDataAndForetell> getForetellData(Map<String, Object> param) {
        return tRADEDATA200Mapper.getForetellData(param);
    }

    @Override
    public List<TRADEDATA200> selectTradedataInput40Days(TRADEDATA200 tRADEDATA200) {
        return tRADEDATA200Mapper.selectTradedataInput40Days(tRADEDATA200);
    }

    @Override
    public List<TRADEDATA200> selectTradedataTarget40Days(TRADEDATA200 tRADEDATA200) {
        return tRADEDATA200Mapper.selectTradedataTarget40Days(tRADEDATA200);
    }
}
